home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / scsiDiskBoot / sun3.md / RCS / devConfig.c,v < prev   
Encoding:
Text File  |  1989-06-08  |  3.2 KB  |  148 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    mendel:1.3; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.3
  10. date     88.08.31.20.58.12;  author nelson;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     87.05.08.17.44.24;  author brent;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     86.07.18.09.30.38;  author brent;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @Boot program device configureation table.
  27. Initial version for SCSI disk or tape
  28. @
  29.  
  30.  
  31. 1.3
  32. log
  33. @Fixed bug where for Sun3's was trying to go to the multibus device.
  34. @
  35. text
  36. @/* 
  37.  * devConfig.c --
  38.  *
  39.  *    Configuration table for the devices in the system.  Devices fall
  40.  *    into two classes: those that are slaves of a controller,
  41.  *    and those that aren't.  As such there is a configuration table for
  42.  *    controllers and one for devices.
  43.  *
  44.  * Copyright 1986 Regents of the University of California
  45.  * All rights reserved.
  46.  */
  47.  
  48. #ifndef lint
  49. static char rcsid[] = "$Header: devConfig.c,v 1.2 87/05/08 17:44:24 brent Exp $ SPRITE (Berkeley)";
  50. #endif not lint
  51.  
  52.  
  53. #include "sprite.h"
  54. #include "boot.h"
  55. #include "devInt.h"
  56. /*
  57.  * Per device include files.
  58.  */
  59. #if defined(SCSI_DISK_BOOT) || defined(SCSI_TAPE_BOOT)
  60. #include "devSCSI.h"
  61. #endif
  62.  
  63. #ifdef XYLOGICS_BOOT
  64. #include "devXylogics.h"
  65. #endif
  66.  
  67. /*
  68.  * The controller configuration table.
  69.  */
  70. DevConfigController devCntrlr[] = {
  71. /*   address,  ID, initProc */
  72. #if defined(SCSI_DISK_BOOT) || defined(SCSI_TAPE_BOOT)
  73. #ifdef SUN2
  74.     { "SCSI", 0x80000, DEV_MULTIBUS,    0, Dev_SCSIInitController, 0, 0},
  75. #endif
  76.     { "SCSI", 0x200000, DEV_VME_D16A24,    0, Dev_SCSIInitController, 64, 0},
  77. #endif
  78. #ifdef XYLOGICS_BOOT
  79.     { "Xylogics", 0xee40, DEV_VME_D16A16, 0, Dev_XylogicsInitController, 72, 0},
  80. #endif
  81. };
  82. int devNumConfigCntrlrs = sizeof(devCntrlr) / sizeof(DevConfigController);
  83.  
  84. /*
  85.  * The device configuration table.  Device entries for non-existent controllers
  86.  * don't cost any time at startup.  Non-existent devices on existing
  87.  * controllers can cost a timeout period of up to a second at start up.
  88.  *
  89.  * NB: There is an implicit correspondence between filesystem unit numbers
  90.  * and particular disks.  Several entries for the same kind of device
  91.  * result in a correspondence between those devices and ranges of unit
  92.  * numbers. For disks, there are FS_NUM_DISK_PARTS different unit numbers
  93.  * associated with each disk, and successive disks have consequative
  94.  * ranges of unit numbers.
  95.  */
  96. DevConfigDevice devDevice[] = {
  97. /* cntrlrID, slaveID, flags, initproc */
  98. #ifdef SCSI_DISK_BOOT
  99.     { 0, 0, DEV_SCSI_DISK, Dev_SCSIInitDevice},        /* Units 0-7 */
  100. #endif
  101. #ifdef SCSI_TAPE_BOOT
  102.     { 0, 4, DEV_SCSI_TAPE, Dev_SCSIInitDevice},
  103. #endif
  104. #ifdef XYLOGICS_BOOT
  105.     { 0, 0, 0, Dev_XylogicsInitDevice},            /* Units 0-7 */
  106. #endif
  107. };
  108. int devNumConfigDevices = sizeof(devDevice) / sizeof(DevConfigDevice);
  109. @
  110.  
  111.  
  112. 1.2
  113. log
  114. @Added stuff for devXylogics
  115. @
  116. text
  117. @d14 1
  118. a14 1
  119. static char rcsid[] = "$Header: devConfig.c,v 1.1 86/07/18 09:30:38 brent Exp $ SPRITE (Berkeley)";
  120. d38 1
  121. d40 1
  122. @
  123.  
  124.  
  125. 1.1
  126. log
  127. @Initial revision
  128. @
  129. text
  130. @d14 1
  131. a14 1
  132. static char rcsid[] = "$Header: devConfig.c,v 1.4 86/07/07 10:39:42 brent Exp $ SPRITE (Berkeley)";
  133. d24 1
  134. d26 1
  135. d28 4
  136. d37 7
  137. a43 2
  138.     { 0x80000, 0, Dev_SCSIInitController},
  139.     { 0x84000, 1, Dev_SCSIInitController},
  140. d61 1
  141. a61 1
  142. #ifdef DISK_BOOT
  143. d64 1
  144. a64 1
  145. #ifdef TAPE_BOOT
  146. d66 3
  147. @
  148.